﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Share/MainMenu.Master" AutoEventWireup="true"
    CodeBehind="fChartAcc.aspx.cs" Inherits="MixScriptWeb.Accounting.fChartAcc" %>

<%@ Register Src="~/control/MixScriptTB.ascx" TagName="baseTextBox" TagPrefix="mix" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">

        //jQuery(document).ready(function(){
        //    document.getElementById('acclegend').style.width = jQuery('.groupacc').width() -22 + "px";

        //});

        //jQuery(window).resize(function () {
        //    document.getElementById('acclegend').style.width = jQuery('.groupacc').width() - 22 + "px";
        //});
    </script>
    <div style="padding-left: 10px;">
        <h2 class="jquery_tab">
            <asp:Label ID="lblTitle" runat="server" Text="Chart of Account" Font-Bold="True"></asp:Label>
        </h2>
        <%--<tr>
                <td style="height: 26px; width: 196px;">
                    Vendor</td>
                <td style="width: 5px; height: 26px;">
                    :</td>
                <td style="height: 26px; width: 753px;">
                    <asp:TextBox ID="txtKeterangan" runat="server" Font-Bold="True"></asp:TextBox></td>
                <td style="width: 127px; height: 26px">
                </td>
            </tr>--%>
        <%--<tr>
                <td style="height: 26px; width: 196px;">
                    Vendor</td>
                <td style="width: 5px; height: 26px;">
                    :</td>
                <td style="height: 26px; width: 753px;">
                    <asp:TextBox ID="txtKeterangan" runat="server" Font-Bold="True"></asp:TextBox></td>
                <td style="width: 127px; height: 26px">
                </td>
            </tr>--%>
        <br />
        <table style="width: 100%;" class="table-ui">
            <tr>
                <td style="width: 173px;">
                    <label id="lbuser" for="txtUserID" class="tebel">
                        Parent ID</label>
                </td>
                <td style="width: 5px;">
                    :
                </td>
                <td style="width: 1273px;">
                    <%--<tr>
                <td style="height: 26px; width: 196px;">
                    Vendor</td>
                <td style="width: 5px; height: 26px;">
                    :</td>
                <td style="height: 26px; width: 753px;">
                    <asp:TextBox ID="txtKeterangan" runat="server" Font-Bold="True"></asp:TextBox></td>
                <td style="width: 127px; height: 26px">
                </td>
            </tr>--%>
                    <mix:baseTextBox ID="txtParent" runat="server" AllowNull="false" showFind="True"
                        tooltip="" isvalid="True" isPassword="False" tWidht="150" ReadOnly="False" />
                </td>
            </tr>
            <tr>
                <td style="width: 173px;">
                    Acc ID
                </td>
                <td style="width: 5px;">
                    :
                </td>
                <td style="width: 1273px;">
                    <asp:Label ID="lblParent" CssClass="input-set" runat="server" Visible="False"></asp:Label><mix:baseTextBox
                        ID="txtAccID" runat="server" AllowNull="false" showFind="False" tooltip="" isvalid="True"
                        isPassword="False" tWidht="80" />
                </td>
            </tr>
            <tr>
                <td style="width: 173px; height: 28px;">
                    Acc Name
                </td>
                <td style="width: 5px; height: 28px;">
                    :
                </td>
                <td style="width: 1273px;">
                    <mix:baseTextBox ID="txtAccName" runat="server" AllowNull="false" showFind="False"
                        tooltip="" isvalid="True" isPassword="False" tWidht="400" />
                </td>
            </tr>
            <tr>
                <td style="width: 173px;">
                    Acc Type
                </td>
                <td style="width: 5px;">
                    :
                </td>
                <td style="width: 1273px;">
                    <asp:DropDownList ID="ddlAccType" runat="server">
                        <asp:ListItem>D</asp:ListItem>
                        <asp:ListItem>G</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    Process
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:DropDownList ID="ddlProcess" runat="server">
                        <asp:ListItem Text="None" Value="xx" />
                        <asp:ListItem Text="Cash" Value="2" />
                        <asp:ListItem Text="Bank" Value="3" />
                        <asp:ListItem Text="A/R Customer" Value="4" />
                        <asp:ListItem Text="A/R Credit Card" Value="5" />
                        <asp:ListItem Text="A/R Employee" Value="6" />
                        <asp:ListItem Text="A/P Supplier" Value="7" />
                        <asp:ListItem Text="Vehical" Value="8" />
                        <asp:ListItem Text="Raw Material" Value="9" />
                        <asp:ListItem Text="Sub Material" Value="10" />
                        <asp:ListItem Text="Work In Process" Value="11" />
                        <asp:ListItem Text="Finished Goods" Value="12" />
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    Application
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:DropDownList ID="ddlApplication" runat="server">
                        <asp:ListItem Text="Asset" Value="1" />
                        <asp:ListItem Text="Liabilities" Value="2" />
                        <asp:ListItem Text="Capital" Value="3" />
                        <asp:ListItem Text="Revenue" Value="4" />
                        <asp:ListItem Text="Expensive" Value="5" />
                        <asp:ListItem Text="Other Revenue" Value="6" />
                        <asp:ListItem Text="Other Expensive" Value="7" />
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    Sub Application
                </td>
                <td>
                    :
                </td>
                <td>
                    <asp:DropDownList ID="ddlSubApplication" runat="server">
                        <asp:ListItem Text="None" Value="1" />
                        <asp:ListItem Text="Current Asset" Value="2" />
                        <asp:ListItem Text="Short Term Liabilities" Value="3" />
                        <asp:ListItem Text="Fixed Asset" Value="4" />
                    </asp:DropDownList>
                </td>
            </tr>
            <%--<tr>
                <td style="height: 26px; width: 196px;">
                    Vendor</td>
                <td style="width: 5px; height: 26px;">
                    :</td>
                <td style="height: 26px; width: 753px;">
                    <asp:TextBox ID="txtKeterangan" runat="server" Font-Bold="True"></asp:TextBox></td>
                <td style="width: 127px; height: 26px">
                </td>
            </tr>--%>
        </table>
        <br />
        <table style="width: 600px" class="table-ui">
            <tr>
                <td style="height: 26px;">
                    <asp:Button ID="btnNew" runat="server" CssClass="button" Text="New" Width="99px"
                        OnClick="btnNew_Click" />
                </td>
                <td style="height: 26px">
                    &nbsp;
                </td>
                <td style="height: 26px">
                    <asp:Button ID="btnSave" runat="server" CssClass="button" Text="Save" Width="99px"
                        OnClick="btnSave_Click" />
                </td>
                <td style="height: 26px">
                </td>
                <td style="height: 26px">
                    <asp:Button ID="btnDelete" runat="server" Text="Delete" CssClass="button" Width="109px"
                        OnClick="btnDelete_Click" />
                </td>
                <td style="height: 26px">
                </td>
                <td style="height: 26px">
                    <asp:Button ID="btnFind" runat="server" Text="Find" CssClass="button" Width="101px"
                        OnClick="btnFind_Click" />
                </td>
                <td style="height: 26px">
                </td>
                <td style="height: 26px">
                    <asp:Button ID="btnClear" runat="server" Text="Clear" CssClass="button" Width="101px"
                        OnClick="btnClear_Click" />
                </td>
            </tr>
        </table>
        <asp:GridView ID="gvdetail" runat="server" Width="100%" AllowPaging="True" CssClass="gridview"
            AllowSorting="True" OnPageIndexChanging="gvdetail_PageIndexChanging" OnSorting="gvdetail_Sorting"
            OnRowDataBound="gvdetail_RowDataBound" OnSelectedIndexChanged="gvdetail_SelectedIndexChanged"
            AutoGenerateColumns="False">
            <AlternatingRowStyle CssClass="alt" />
            <Columns>
                <asp:CommandField ShowSelectButton="True">
                    <ControlStyle Width="0px" />
                </asp:CommandField>
                <asp:BoundField DataField="idcoa" HeaderText="COA ID" />
                <asp:BoundField DataField="coaname" HeaderText="NAME" />
                <asp:BoundField DataField="coatyp" HeaderText="COA TYPE" />
                <asp:BoundField DataField="parentid" HeaderText="PARENT" />
                <asp:BoundField DataField="process_name" HeaderText="PROCESS" />
                <asp:BoundField DataField="application_name" HeaderText="APPLICATION" />
                <asp:BoundField DataField="application" HeaderText="APPLICATION_ID" ItemStyle-CssClass="hiden"
                    HeaderStyle-CssClass="hiden" />
                <asp:BoundField DataField="process" HeaderText="PROCESS_ID" ItemStyle-CssClass="hiden"
                    HeaderStyle-CssClass="hiden" />
                <asp:BoundField DataField="subapplication" HeaderText="APPLICATION_ID" ItemStyle-CssClass="hiden"
                    HeaderStyle-CssClass="hiden" />
            </Columns>
            <EditRowStyle BorderColor="Silver" BorderStyle="Solid" />
            <FooterStyle CssClass="ft" />
            <PagerStyle BorderStyle="None" BorderWidth="0px" HorizontalAlign="Center" />
        </asp:GridView>
        <asp:LinkButton ID="lbDelete" runat="server" OnClick="lbDelete_Click" OnClientClick="return confirm('Are You Sure Want to Delete Selected Item?')"
            Visible="False">Delete Selection</asp:LinkButton>
    </div>
    <%--  <div id="divDetail" style="display: none; position: absolute; left: 50px; top: 50px;
        padding: 10px; border: solid gray 1px; background-color: White; text-align: justify;
        font-size: 12px; width: 50%;" title="Detail">
        <table class="table-ui">
            
            <tr>
                <td>
                    Account No
                </td>
                <td>
                    &nbsp;:&nbsp;
                    <mix:baseTextBox ID="txtAccountNo" runat="server" AllowNull="false" showFind="False"
                        tooltip="" isvalid="True" isPassword="False" tWidht="100" />
                </td>
            </tr>
            <tr>
                <td>
                    Description
                </td>
                <td>
                    &nbsp;:&nbsp;
                    <mix:baseTextBox ID="txtDescription" runat="server" AllowNull="false" showFind="False"
                        tooltip="" isvalid="True" isPassword="False" tWidht="350" />
                </td>
            </tr>
            <tr>
                <td>
                    Debit / Kredit
                </td>
                <td>
                    &nbsp;:&nbsp;
                    <asp:DropDownList ID="ddlDK" runat="server">
                        <asp:ListItem Text="D" Value="Debit" />
                        <asp:ListItem Text="K" Value="Kredit" />
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    Currency
                </td>
                <td>
                    &nbsp;:&nbsp;
                    <asp:DropDownList ID="ddlCurrency" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            
            
        </table>
    </div>--%>
</asp:Content>
